package com.ssy.lingxi.workflow.model.bo;

import com.ssy.lingxi.workflow.model.constant.ExternalTaskRoleTypeEnum;
import com.ssy.lingxi.workflow.model.constant.ModelConstant;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 任务属性BO，用于解析流程图定义
 * @author 万宁
 * @version 2.0.0
 * @date 2021-04-24
 */
public class TaskPropertyBO implements Serializable {
    private static final long serialVersionUID = 4860334307908710769L;

    public TaskPropertyBO() {
        this.taskName = "";
        this.taskStep = -1;
        this.status = -1;
        this.agree = ModelConstant.NO_AGREE;
        this.roleType = ExternalTaskRoleTypeEnum.DEFAULT.getCode();
        this.desc = "";
        this.url = "";
        this.other = new HashMap<>();
    }

    private String taskName;

    private Integer taskStep;

    private Integer status;

    private Integer agree;

    private Integer roleType;

    private String desc;

    private String url;

    private Map<String, String> other;

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Integer getTaskStep() {
        return taskStep;
    }

    public void setTaskStep(Integer taskStep) {
        this.taskStep = taskStep;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAgree() {
        return agree;
    }

    public void setAgree(Integer agree) {
        this.agree = agree;
    }

    public Integer getRoleType() {
        return roleType;
    }

    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Map<String, String> getOther() {
        return other;
    }

    public void setOther(Map<String, String> other) {
        this.other = other;
    }
}
